import Layout from '@/views/layout'
/**
 * 商户中心
 */
const myAccount = () => import('@/views/account/myAccount')
const serviceSet = () => import('@/views/merchantCenter/serviceSet')

export default [
  {
    path: '/merchant',
    name: 'merchant',
    redirect: '/merchant/accountManage',
    component: Layout,
    meta: {
      title: '商户中心',
      icon: 'merchant.png',
      index: 10
    },
    children: [
      {
        path: 'accountManage',
        name: 'accountManage',
        meta: {
          title: '账号管理'
        },
        component: () => import('@/views/gasStationManage/accountManage')
      },
      {
        path: 'myAccount',
        name: 'myAccount',
        component: myAccount,
        meta: { title: '我的账号'},
      },
      {
        path: 'serviceSet',
        name: 'serviceSet',
        component: serviceSet,
        meta: { title: '服务配置' }
      }
    ]
  }
]